package jmcnet.libcommun.communs.time
{
	public class TimeHHMMSS extends Time
	{
		public function TimeHHMMSS(hh:uint=0, mm:uint=0, ss:uint=0) {
			super(hh, mm, ss, 0);
		}
		
		override public function toString():String {
			return timeToString(true, true, true, false);
		}
		
		public static function stringToTimeHHMMSS(str:String, hb:Boolean=true, mb:Boolean=true, sb:Boolean=true):TimeHHMMSS {
			if (str == null || str.length <= 0) return null;
			var t:Time = Time.stringToTime(str, hb, mb, sb, false);
			return new TimeHHMMSS(t.hour, t.minute, t.second);
		}
	}
}